<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <script src="../module/ydui/ydui.flexible.min.js"></script>
    <link href="../module/ydui/ydui.min.css" rel="stylesheet">
</head>
<body>
<style>
    .footer {
        width: 100%;
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        color: #FFFFFF;
        background-color: #DE4E97;
        font-size: 0.3rem;
        font-family: 'PingFang-SC-Medium';
        position: fixed;
        left: 0;
        bottom: 0;
    }

    .header {
        width: 100%;
        height: 0.9rem;
        line-height: 0.9rem;
        text-align: center;
        font-size: 0.32rem;
        color: #FFFFFF;
        padding: 0 0.3rem;
        position: relative;
        background: url(../img/bg.png) no-repeat top left;
        background-size: 100%;
    }

    .header .btn-goback {
        width: 0.9rem;
        height: 0.9rem;
        position: absolute;
        top: 0;
        left: 0.3rem;
    }

    .header .btn-goback:after {
        content: '';
        width: 0.2rem;
        height: 0.34rem;
        background: url("../img/goback.png") no-repeat center center;
        background-size: contain;
        position: absolute;
        top: 0.28rem;
        left: 0;
    }

    .copeWith {
        text-align: center;
        width: 100%;
        line-height: 1.87rem;
        font-size: 0.34rem;
        background: #FFFFFF;
        font-family: '微软雅黑';
    }

    .copeWith span {
        color: #DE4E97;
        font-size: 0.4rem;
    }

    .ChoicePay {
        width: 100%;
        padding: 0.27rem;
        box-sizing: border-box;
        color: #A8B0BA;
        font-size: 0.26rem;
    }

    .payItem {
        width: 100%;
        height: 1.61rem;
        background: #FFFFFF;
        position: relative;
        box-sizing: border-box;
        padding: 0.5rem 0.55rem 0 0.4rem;
        margin-bottom: 0.2rem;
    }

    .pay_sele:before {
        content: '';
        width: 0.3rem;
        height: 0.3rem;
        background: url("../img/pay_sele.png");
        background-size: cover;
        display: block;
        position: absolute;
    }

    .pay_body {
        padding-left: 1.4rem;
        position: relative;
    }

    .pay_icon {
        width: 0.57rem;
        height: 0.57rem;
        position: absolute;
        top: 0;
        left: 0.57rem;

    }

    .wx_icon {
        background: url("../img/pay_wx.png");
        background-size: cover;
    }

    .al_icon {
        background: url("../img/pay_al.png");
        background-size: cover;
    }

    .pay_recomm {
        width: 1.2rem;
        height: 0.5rem;
        border: 1px solid #DE4E97;
        border-radius: 8px;
        background: #DE4E97;
        box-sizing: border-box;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0.1rem;
    }

    .pay_recomm > div {
        float: left;
        line-height: 0.5rem;
        text-align: center;
        font-size: 0.24rem;
    }

    .pay_recomm > div:nth-child(1) {
        width: 0.5rem;
        color: #FFFFFF;
    }

    .pay_recomm .pay_discount {
        width: 0.65rem;
        color: #DE4E97;
        background: #fff;
        position: absolute;
        right: 0;
        top: 0;
    }
</style>

<div class="header">
    <span class="btn-goback"></span>
    <span>支付</span>
</div>
<section class="section_body">
    <div class="copeWith">
        应付：<span>¥521.50</span>(含运费￥8元)
    </div>
    <div class="ChoicePay">请选择支付方式：</div>
    <div class="payItem pay_sele">
        <div class="pay_body">
            <div class="pay_icon wx_icon"></div>
            <div>微信客户端支付</div>
            <div>简单快捷，推荐使用</div>
            <div class="pay_recomm">
                <div>荐</div>
                <div class="pay_discount">8折</div>
            </div>
        </div>
    </div>
    <div class="payItem">
        <div class="pay_body">
            <div class="pay_icon al_icon"></div>
            <div>微信客户端支付</div>
            <div>简单快捷，推荐使用</div>
            <div></div>
        </div>
    </div>
</section>
<div class="footer btn-submit">去支付</div>
<script src="../module/jquery/2.1.4/jquery.min.js"></script>
<script>
    $(function () {
        $('.payItem').on('click', function () {
            var $self = $(this);
            $self.addClass('pay_sele').siblings().removeClass('pay_sele');
        });

    })
</script>
</body>
</html>